﻿<phone:PhoneApplicationPage
    x:Class="DnD.UserPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="False"
    Style="{StaticResource TransitionPageStyle}">
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar Mode="Default" Opacity="0.5" IsMenuEnabled="False" IsVisible="True">

            <shell:ApplicationBarIconButton Click="AppBar_Click" IconUri="/Assets/Icons/login.png" Text="login" />
            <shell:ApplicationBarIconButton Click="AppBar_Click" IconUri="/Assets/Icons/map.png" Text="map" />




        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>


    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" >
        <Grid.Background>
            <ImageBrush  Stretch="None" ImageSource="{Binding  BackGroundImageSource}" />
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="39*"/>


            <RowDefinition Height="104*"/>
            <RowDefinition Height="113*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel Grid.Row="0" Margin="10,0,10,0">
            <TextBlock Text="PROFILE" Style="{StaticResource PhoneTextNormalStyle}"/>
            <Border BorderThickness="5" Height="79" BorderBrush="{StaticResource BorderColor}" Background="{StaticResource BackgroundColor}" Margin="0,0,0,0" >
                <TextBlock Text="{Binding UserName }" Margin="10,0,10,10" Style="{StaticResource CardHeaderTextStyle}"/>
            </Border>

        </StackPanel>
        <!--ContentPanel - place additional content here-->
        <Border Grid.Row="1" BorderThickness="5" BorderBrush="{StaticResource BorderColor}" Background="{StaticResource BackgroundColor}" Margin="30,0,30,0" >
            <Image Source="Assets/Pictures/Icon-user.png"  Width="410" Height="300" Stretch="UniformToFill"/>
        </Border>
        <Border Grid.Row="2" BorderThickness="5" BorderBrush="#FFFF9F00" Background="{StaticResource BackgroundColor}" Margin="10,10,10,24" >
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="4*"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <TextBlock Grid.Row="0" TextWrapping="Wrap"  Text="{Binding userDescription}" Margin="10,10,10,10" Style="{StaticResource CardDescTextStyle}"/>
               
            </Grid>
        </Border>
    </Grid>

</phone:PhoneApplicationPage>